﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication1
{
    class Account
    {
        private int id;
        private decimal money;

        public int Id
        {
            get
            {
                return id;
            }
            set
            {
                id = value;
            }
        }
        public decimal Money
        {
            get
            {
                return money;
            }
            set
            {
                if (value>0)
                money = value;
            }
        }



    }
}
